import api from "./api_base";

//上传GPU信息
export const uploadCenterInfo = (data) => {
  return api.post("/center/info", data);
};

//获取GPU信息
export const getCenterInfo = (page, limit, data) => {
  return api.get("/center/info", { params: { page, limit, ...data } });
};

//删除GPU信息
export const deleteCenterInfo = (id) => {
  return api.delete(`/center/info/delete/${id}`);
};

//更新Center信息
export const updateCenterInfo = (id, data) => {
  return api.post(`/center/info/${id}`, data);
};
